package com.xyh.transaction.mapper;

import com.xyh.transaction.entity.Button;
import com.xyh.transaction.entity.dto.button.ButtonDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.Collection;
import java.util.List;

@Mapper
public interface ButtonMapper {


    List<ButtonDto> findButtonAuthByMenuId(Integer menuId);

    List<Button> findAll(Button button);

    Integer deleteByMenuId(int menuId);

    Integer insertButtonAuths(Collection<Integer> authButtons, int menuId);

    Integer updateById(Button button);

    Integer inset(Button button);

    Integer deleteByIds(Integer[] ids);
}
